// router.js

import { createRouter, createWebHistory } from 'vue-router';
import login from "./vueview/login.vue";
import index from "./vueview/index.vue"
import board from "./vueview/board.vue"
import Orderfood from  "./vueview/Order-food.vue"
import recharge from  "./vueview/recharge.vue"
import  userdetails from  "./vueview/User-details.vue"
import hotfood from "./vueview/hotfood.vue"
const router = createRouter({
    history: createWebHistory(),
    routes: [
        { path: '/login', component: login },
        { path: '/index', component: index },
        { path: '/board', component: board },
        { path: '/orderfood', component: Orderfood ,
            children: [
                { path: '/orderfood/hotfood', component: hotfood },
            ]},
        { path: '/recharge ', component: recharge  },
        { path: '/userdetails', component: userdetails },

    ],
});

export default router;
